<?php

/**
 * Controller nay se handle cac request lien quan den check out, 
 * gio hang, luu order, xem lich su order...
 * 
 * @author Tuyet
 * @package Controller
 * @subpackage N/A
 * @category Order
 */
class Checkout extends CI_Controller {

    public function __construct() {
        parent::__construct();

        $this->load->model('m_categories');

        //Lay du lieu category menu cho layout dung chung.
        $data['categories'] = $this->m_categories->getcategoryparent();
        $data['allcategory'] = $this->m_categories->getallcategories();
        $data['menu'] = array('categories' => $data['categories'], 'allcategory' => $data['allcategory']);
        $this->load->vars($data);
    }

    public function cart() {
        $data['show'] = 'frontend/cart/detail';
        $this->load->view('frontend/layout', $data);
    }
    public function index(){
//          $data['show'] = 'frontend/checkout/account';
//        $this->load->view('frontend/layout', $data);
        $this->load->view('frontend/checkout/account');
    }
    public function ttthu(){
        $this->load->view('frontend/checkout/demo_checkout');
    }

    public function checkoutBaoKim() {
//        $mahd='';
//        $sum='';
//        $email='';
//        $success_url='';
//        $url_cancel='';
//        =>url;
//        redirect($uri);
      
    }

}
